<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">应付账款编号:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[payable_no]" type="text" placeholder="系统自动生成" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">供应商:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control" name="row[supplier_id]" data-rule="required">
                <option value="">请选择供应商</option>
                {foreach $supplierList as $k=>$v}
                <option value="{$k}">{$v}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">应付总金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[total_amount]" type="number" step="0.01" value="0.00" data-rule="required;float" placeholder="请输入应付总金额">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">已付金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[paid_amount]" type="number" step="0.01" value="0.00" data-rule="float" placeholder="请输入已付金额">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">到期日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[due_date]" type="date" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">付款条件:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[payment_terms]" type="text" placeholder="如：30天内付款">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" name="row[remark]" rows="3" placeholder="请输入备注信息"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
